import java.awt.event.*;

class click implements ActionListener{
	private int x=1;
	private String dir="";
	public click(String xxx,int xx){
		dir = xxx;
		x = xx;
	}
	public click(int xxx){
		x = xxx;
	}
	public void actionPerformed(ActionEvent e){
		if(dir!="") controlPanel.putCall(dir,x);
		else controlPanel.putChoose(x);
	}
}